IP Grabber



(Netscape only, and Java must be enabled) Whether it's ethical or not, getting information on your site's visitors is just plain neat. As one of the most requested scripts, this little gem will allow you to get the user's IP address! Neat! 
--------------------------------------------------------------------------------
 

<!-- ONE STEP TO INSTALL IP GRABBER:

  1.  Copy the coding into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document  -->

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

if ((navigator.appVersion.indexOf("4.") != -1) && (navigator.appName.indexOf("Netscape") != -1)){ 
ip = "" + java.net.InetAddress.getLocalHost().getHostAddress();
document.write("Your IP address is " + ip);
}
else {
document.write("IP Address only shown in Netscape with Java enabled!");
}
//  End -->
</script>

<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  0.71 KB -->